package com.example.domain.bo;

import com.example.commons.DataMask;
import com.example.commons.MaskTypeEnum;
import lombok.Builder;
import lombok.Data;

/**
 *
 * @author liuxm34
 * @since 2025/4/21
 */
@Data
@Builder
public class User {
    @DataMask(function = MaskTypeEnum.USERNAME)
    private String phone;
    @DataMask
    private String name;

    public static void main(String[] args) {
        User build = User.builder().phone("13112341234").build();
        System.out.println(build);
    }
}